<?php 
/**
 * 配置
 * @author Yuwei(yuwei1122@gmail.com)
 *
 */
class BluePhp_Core_Config
{
	/**
	 * 配置信息
	 */
	public static function config()
	{
		/**
		 * 引入项目配置文件
		 */
		$projectConfigFile = '..'.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'config.php';
		if(file_exists($projectConfigFile))
		{
			require_once $projectConfigFile;
			foreach ($config as $key => $value)
				define($key, $value);
		}
		/**
		 * 引入框架配置文件
		 */
		$frameworkConfigFile = '..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'BluePhp'.DIRECTORY_SEPARATOR.'Conf'.DIRECTORY_SEPARATOR.'config.php';
		if(file_exists($frameworkConfigFile))
		{
			require_once $frameworkConfigFile;
			foreach ($simpleConfig as $key => $value)
				defined($key) or define($key, $value);
		}
	}
}
?>